package main

import (
	"fmt"
	"leetcode/20/solution"
)

// 20题
// 有效的括号
// https://leetcode-cn.com/problems/valid-parentheses/

func main() {
	var (
		case1 = ""
		case2 = "()"
		case3 = "()[]{}"
		case4 = "(]"
		case5 = "([)]"
		case6 = "{[]}"
		case7 = "{"
	)

	// 方案1
	fmt.Println(solution.V1(case1))
	fmt.Println(solution.V1(case2))
	fmt.Println(solution.V1(case3))
	fmt.Println(solution.V1(case4))
	fmt.Println(solution.V1(case5))
	fmt.Println(solution.V1(case6))
	fmt.Println(solution.V1(case7))
}
